﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ext.Net;
public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(Cookies.getCookies("uid")=="0")
        {
            Response.Redirect("~/Login.aspx");
        }
        lbUsername.Text = Cookies.getCookies("username");
    }
    protected void LogOut(object sender,DirectEventArgs e)
    {
        Cookies.addCookies("username", "", -1);
        Cookies.addCookies("uid", "", -1);
        Response.Redirect("~/Login.aspx");
    }
    
}